package com.campus.service;

import com.campus.common.Result;
import com.campus.entity.PostDetailDTO;
import com.campus.entity.Posts;
import jakarta.servlet.http.HttpServletRequest;

public interface PostService {
    public Result createPost(Posts posts,String token);

    Result getPostsList(int page, int size, int category);
    Result getUserPosts(String userId, int size,int page, HttpServletRequest request);

    Result getPostById(String PostId);
    
    // 获取帖子详情（包含用户和分类信息）
    Result getPostDetailById(String postId);
    
    // 删除帖子
    Result deletePost(String postId, String userId);

    // 更新帖子
    Result updatePost(String postId, Posts post, String userId);
}
